package com.gzhryc.shared_device.common.device.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 智能设备功能项
 * @version 2022-08-29
 */
@Table(name="device_type_func")
public class DeviceTypeFunc implements Serializable {

    private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Column(name = "type_id", notNull = true, note = "设备类型ID")
    protected String typeId;

    @PrimaryKey
    @Column(notNull = true, note = "功能Code")
    protected String code;

    @Column(name="code_name",notNull = true,defVal = "充电插座",note = "功能名称")
    protected String codeName;

    @Column(name = "slot_total", notNull = true, defVal = "1", note = "卡槽数量")
    protected Integer slotTotal;

    @Column(name="protocol_type",note = "协议类型")
    protected String protocolType;

    @Column(name="business_type",note = "业务类型")
    protected String businessType;

    @Column(length = 255, note = "备注")
    protected String note;

    @Column(name = "update_date", autoUpdateTime = true, note = "最后修改时间")
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    private String businessTypeName;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeName() {
        return codeName;
    }

    public Integer getSlotTotal() {
        return slotTotal;
    }

    public void setSlotTotal(Integer slotTotal) {
        this.slotTotal = slotTotal;
    }

    public String getProtocolType() {
        return protocolType;
    }

    public void setProtocolType(String protocolType) {
        this.protocolType = protocolType;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public String getBusinessTypeName() {
        return businessTypeName;
    }

    public void setBusinessTypeName(String businessTypeName) {
        this.businessTypeName = businessTypeName;
    }
}
